.class public Lcom/instagram/android/widget/ag;
.super Ljava/lang/Object;
.source "ShareTableHelper.java"


# instance fields
.field private final a:Lcom/instagram/android/widget/ao;

.field private final b:Landroid/os/Handler;

.field private final c:Lcom/instagram/e/b/b;

.field private final d:Lcom/instagram/android/widget/ShareTable;

.field private final e:Lcom/instagram/android/widget/ar;

.field private f:Lcom/instagram/android/creation/widget/UploadCompoundButton;

.field private g:Lcom/instagram/android/creation/widget/UploadCompoundButton;

.field private h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

.field private i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

.field private j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

.field private k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

.field private l:Z

.field private m:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/widget/aq;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/instagram/android/widget/ShareTable;Lcom/instagram/e/b/b;Lcom/instagram/model/a/b;Lcom/instagram/android/widget/ar;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 74
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 54
    new-instance v0, Lcom/instagram/android/widget/ao;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/widget/ao;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/android/widget/ah;)V

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->a:Lcom/instagram/android/widget/ao;

    .line 55
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->b:Landroid/os/Handler;

    .line 68
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    .line 75
    iput-object p2, p0, Lcom/instagram/android/widget/ag;->c:Lcom/instagram/e/b/b;

    .line 76
    iput-object p1, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    .line 77
    iput-object p4, p0, Lcom/instagram/android/widget/ag;->e:Lcom/instagram/android/widget/ar;

    .line 78
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->c:Lcom/instagram/e/b/b;

    invoke-virtual {v0}, Lcom/instagram/e/b/b;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/w/a;->a(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/widget/ag;->l:Z

    .line 79
    invoke-virtual {p0, p3}, Lcom/instagram/android/widget/ag;->a(Lcom/instagram/model/a/b;)V

    .line 80
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/widget/ag;)Lcom/instagram/e/b/b;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->c:Lcom/instagram/e/b/b;

    return-object v0
.end method

.method private c()V
    .locals 2

    .prologue
    .line 414
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/aq;

    .line 415
    invoke-interface {v0}, Lcom/instagram/android/widget/aq;->X()V

    goto :goto_0

    .line 417
    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/widget/ag;)V
    .locals 0
    .parameter

    .prologue
    .line 45
    invoke-direct {p0}, Lcom/instagram/android/widget/ag;->c()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->g:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/widget/ao;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->a:Lcom/instagram/android/widget/ao;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/widget/ShareTable;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    return-object v0
.end method

.method static synthetic i(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    return-object v0
.end method

.method static synthetic j(Lcom/instagram/android/widget/ag;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->b:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a()Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;
    .locals 1

    .prologue
    .line 99
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    return-object v0
.end method

.method public a(IILandroid/content/Intent;Z)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 108
    const/4 v0, -0x1

    if-ne p2, v0, :cond_1

    .line 109
    packed-switch p1, :pswitch_data_0

    .line 128
    const-string v0, "ShareTableHelper"

    const-string v1, "Default Facebook authorization."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 129
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 132
    iget-object v1, p0, Lcom/instagram/android/widget/ag;->a:Lcom/instagram/android/widget/ao;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 134
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 137
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/aq;

    .line 138
    invoke-interface {v0}, Lcom/instagram/android/widget/aq;->X()V

    goto :goto_1

    .line 111
    :pswitch_0
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->f:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    goto :goto_0

    .line 114
    :pswitch_1
    if-eqz p4, :cond_0

    .line 115
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setChecked(Z)V

    goto :goto_0

    .line 119
    :pswitch_2
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    goto :goto_0

    .line 122
    :pswitch_3
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    goto :goto_0

    .line 125
    :pswitch_4
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    goto :goto_0

    .line 141
    :cond_1
    return-void

    .line 109
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method

.method public a(Lcom/instagram/android/widget/aq;)V
    .locals 1
    .parameter

    .prologue
    .line 420
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 421
    return-void
.end method

.method public a(Lcom/instagram/model/a/b;)V
    .locals 7
    .parameter

    .prologue
    const/16 v6, 0x8

    .line 144
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/aq;

    .line 145
    invoke-interface {v0}, Lcom/instagram/android/widget/aq;->X()V

    goto :goto_0

    .line 148
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->c:Lcom/instagram/e/b/b;

    invoke-virtual {v0}, Lcom/instagram/e/b/b;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/widget/as;->b(Landroid/content/Context;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/as;

    .line 149
    iget-object v1, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    invoke-virtual {v0}, Lcom/instagram/android/widget/as;->c()I

    move-result v3

    invoke-virtual {v1, v3}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 154
    if-eqz v1, :cond_1

    .line 155
    invoke-virtual {v1, v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setAccount(Lcom/instagram/android/widget/as;)V

    .line 158
    iget-object v3, p0, Lcom/instagram/android/widget/ag;->e:Lcom/instagram/android/widget/ar;

    sget-object v4, Lcom/instagram/android/widget/ar;->a:Lcom/instagram/android/widget/ar;

    if-ne v3, v4, :cond_2

    .line 159
    invoke-virtual {v0}, Lcom/instagram/android/widget/as;->e()Z

    move-result v3

    invoke-virtual {v1, v3}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setStickySettingEnabled(Z)V

    .line 164
    :cond_2
    invoke-virtual {v0, p1}, Lcom/instagram/android/widget/as;->a(Lcom/instagram/model/a/b;)Z

    move-result v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    goto :goto_1

    .line 168
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_twitter:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->f:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 169
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_facebook:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->g:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 170
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_foursquare:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    .line 172
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_tumblr:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 173
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_flickr:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 175
    iget-boolean v0, p0, Lcom/instagram/android/widget/ag;->l:Z

    if-eqz v0, :cond_4

    .line 176
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->metadata_row_vkontakte:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    iput-object v0, p0, Lcom/instagram/android/widget/ag;->k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 179
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/ah;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/ah;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 200
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->f:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/ai;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/ai;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 221
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->g:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/aj;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/aj;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 249
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/ak;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/ak;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 270
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/al;

    invoke-direct {v1, p0}, Lcom/instagram/android/widget/al;-><init>(Lcom/instagram/android/widget/ag;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 285
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/am;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/am;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 305
    invoke-interface {p1}, Lcom/instagram/model/a/b;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->a:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_7

    .line 306
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    new-instance v1, Lcom/instagram/android/widget/an;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/an;-><init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setOnCheckedChangeListener(Lcom/instagram/android/widget/h;)V

    .line 355
    :cond_5
    :goto_2
    invoke-static {}, Lcom/instagram/service/b;->b()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 357
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    invoke-virtual {v0}, Lcom/instagram/android/widget/ShareTable;->getRootView()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->share_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sget v1, Lcom/facebook/ba;->sharing_disabled:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 359
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    invoke-virtual {v0, v6}, Lcom/instagram/android/widget/ShareTable;->setVisibility(I)V

    .line 361
    :cond_6
    return-void

    .line 325
    :cond_7
    invoke-interface {p1}, Lcom/instagram/model/a/b;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_5

    .line 326
    iget-boolean v0, p0, Lcom/instagram/android/widget/ag;->l:Z

    if-eqz v0, :cond_8

    .line 327
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 328
    iget-object v1, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v1, v6}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setVisibility(I)V

    .line 331
    new-instance v1, Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 332
    sget v2, Lcom/facebook/av;->share_bottom_right:I

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    .line 333
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, 0x0

    const/4 v4, -0x1

    const/high16 v5, 0x3f80

    invoke-direct {v2, v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 335
    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_2

    .line 337
    :cond_8
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    sget v1, Lcom/facebook/aw;->share_table_row_3:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    .line 340
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->getPaddingLeft()I

    move-result v0

    .line 341
    iget-object v1, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v1}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->getPaddingTop()I

    move-result v1

    .line 342
    iget-object v2, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v2}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->getPaddingRight()I

    move-result v2

    .line 343
    iget-object v3, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v3}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->getPaddingBottom()I

    move-result v3

    .line 345
    iget-object v4, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    sget v5, Lcom/facebook/av;->share_bottom_left:I

    invoke-virtual {v4, v5}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setBackgroundResource(I)V

    .line 346
    iget-object v4, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    sget v5, Lcom/facebook/av;->share_bottom_right:I

    invoke-virtual {v4, v5}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setBackgroundResource(I)V

    .line 349
    iget-object v4, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v4, v0, v1, v2, v3}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setPadding(IIII)V

    .line 350
    iget-object v4, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    invoke-virtual {v4, v0, v1, v2, v3}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setPadding(IIII)V

    goto/16 :goto_2
.end method

.method public a(Lcom/instagram/android/widget/as;)Z
    .locals 3
    .parameter

    .prologue
    .line 371
    const/4 v1, 0x0

    .line 372
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->d:Lcom/instagram/android/widget/ShareTable;

    invoke-virtual {p1}, Lcom/instagram/android/widget/as;->c()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/ShareTable;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/UploadCompoundButton;

    .line 376
    if-eqz v0, :cond_0

    .line 377
    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    .line 379
    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method public b(Lcom/instagram/android/widget/aq;)V
    .locals 1
    .parameter

    .prologue
    .line 424
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->m:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 425
    return-void
.end method

.method public b()Z
    .locals 1

    .prologue
    .line 364
    iget-object v0, p0, Lcom/instagram/android/widget/ag;->f:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/widget/ag;->g:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/widget/ag;->h:Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/widget/ag;->i:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/widget/ag;->j:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/instagram/android/widget/ag;->l:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/widget/ag;->k:Lcom/instagram/android/creation/widget/UploadCompoundButton;

    invoke-virtual {v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
